<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Music
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Search.php 7904 2010-12-03 03:36:14Z john $
 * @author     Jung
 */

/**
 * @category   Application_Extensions
 * @package    Music
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Music_Form_Search extends Engine_Form {
	public function init() {
		$this->setAttribs ( array ('id' => 'filter_form', 'class' => 'global_form_box' ) )->setAction ( Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array () ) )->setMethod ( 'GET' );
		
		parent::init ();
		
		$this->addElement ( 'Text', 'search', array ('label' => 'Search Music:' ) );
		
		$this->addElement ( 'Select', 'show', array ('label' => 'Show', 'multiOptions' => array ('1' => 'Everyone\'s Playlists', '2' => 'Only My Friends\' Playlists' ) ) );
		
		$this->addElement ( 'Select', 'sort', array ('label' => 'Browse By:', 'multiOptions' => array ('recent' => 'Most Recent', 'popular' => 'Most Popular' ) ) );
		
		$this->addElement ( 'Hidden', 'user' );
	}
}